body{
    background-color: #F5F4EF
}
header {
    margin-bottom: 10px;

    h1{
        width: 90%;
        margin: 20px auto 10px;
    }

    nav{
        width: 90%;
        margin: 0 auto;
    }
}

.row {
    //TODO 元素框文本居中
    text-align: center;
}

//引用别人的css
.nav-justified {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.nav-justified > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 0;
    font-weight: bold;
    color: #777;
    text-align: center;
    background-color: #e5e5e5; /* Old browsers */
    background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e5e5e5));
    background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%);
    background-image:      -o-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%);
    background-image:         linear-gradient(to bottom, #f5f5f5 0%,#e5e5e5 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
    background-repeat: repeat-x; /* Repeat the gradient */
    border-bottom: 1px solid #d5d5d5;

    &:active{
        background: #ddd;
        -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,0.15);
        box-shadow: inset 0 3px 7px rgba(0,0,0,0.15);
    }
}
.nav-justified > .active > a,
.nav-justified > .active > a:hover,
.nav-justified > .active > a:focus {
    background-color: #ddd;
    background-image: none;
    -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
    box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
}
.nav-justified > li:first-child > a {
    border-radius: 5px 5px 0 0;
}
.nav-justified > li:last-child > a {
    border-bottom: 0;
    border-radius: 0 0 5px 5px;
}

@media (min-width: 768px) {
    .nav-justified {
        max-height: 52px;
    }
    .nav-justified > li > a {
        border-right: 1px solid #d5d5d5;
        border-left: 1px solid #fff;
    }
    .nav-justified > li:first-child > a {
        border-left: 0;
        border-radius: 5px 0 0 5px;
    }
    .nav-justified > li:last-child > a {
        border-right: 0;
        border-radius: 0 5px 5px 0;
    }
}
//引用别人的css end

footer.container{
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 60px;

    div.row{
        border: 1px solid #ccc;
        width: 100%;
        height: 60px;
        margin: 0;
        text-align: center;
        background: #eee;

        @media screen and (min-width: 1024px){
            position: fixed;
            bottom: 0;
            line-height: 60px;
        }
    }

}

#fixed-tools{
    position: fixed;
    right: 10px;
    bottom: 165px;
    width: 80px;
    border-radius: 2px;
    text-align: center;
    z-index: 100;
    
    a{
        display: block;
        border-radius: 2px;
        padding: 5px;
        background: rgba(0,0,0,0.5);
    }

    #back2top{
        bottom: 0;
        
        img{
            width: 36px;
            height: 36px;
        }
    }

    .qrcode-btn{
        top: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);

        &:hover + .qrcode-wrapper{
            display: block;
        }
    }

    .qrcode-wrapper{
        position: relative;
        display: none;
        top: -106px;
        right: 2px;

        .qrcode,
        p{
            position: absolute;
            right: 80px;
        }

        .qrcode{
            top: -44px;
            width: 150px;
        }

        p{
            top: 105px;
            font-size: 18px;
            width: 140px;
        }

    }

}

a.btn{
    padding: 0;

    &:hover{
        border: 1px solid #ccc;
        box-shadow: 2px 2px 5px;
    }
}

img.thumbnail{
    margin-bottom: 0;
    width: 300px;
    height: 200px;
}

.diary{
    pre{
        margin-top: 20px;
        padding: 10px 100px;
    }

    h3{
        margin-top: 0;
        text-align: center;
    }

    .title{
        margin-top: -10px;
        font-weight: bolder;
        font-size: 20px;
    }

    span,img{
        display: block;
        width: 80%;
        //TODO 居中 之 margin
        margin: 0 auto;
    }

    span.text{
        text-indent: 26px;
    }

    img{
        width: 312px;
        margin: 10px auto;
    }

}


#index{

    section{
        position: relative;
    }

    section:first-child{

        img.large-img{
            margin-top: 5%;
        }

        > .img-text{
            left: 0;
        }
    }

    section:nth-child(3) > .img-text{
        left: -450px;
        top: -130px;
    }

    section:last-child > .img-text{
        left: 250px;
    }

    .large-img{
        display: block;
        width: 100%;
    }

    .img-text{
        position: absolute;
        bottom: 150px;
        left: 90px;
        right: 0;
        display: block;
        width: 100%;
        height: 10%;
        margin: auto;
        font-size: 30px;
        text-align: center;
        //text-shadow: 0 0 1px;
        color: #333;
        z-index: 2;

        @media screen and (max-width: 480px){
            font-size: 15px;
        }

        p.second-text{
            font-size: 55%;
        }
    }

}

#article{

    #cz h3{
        margin-bottom: 30px;
    }

    //隐藏 article, 用js显示
    section{
        display: none;
    }

}

#customize{

    .form-wrapper{
        overflow: hidden;
        width: 60%;
        min-width: 370px;
        max-height: 620px;
        margin: 5% auto;
        padding: 1% 10%;
        text-align: center;
        background: rgba(0, 0, 0, .1) none repeat scroll 0 0 !important;
        filter: alpha(opacity=30);
        background: #000;

        > h2,
        > span{
            color: #333;
        }

        .form-group > label{
            display: block;
            text-align: left;
        }

        form{
            margin-top: 10%;

            .btn-lg{
                margin: 5%;
                width: 40%;
                min-width: 88px;
            }
        }


        div.next-step{
            transform: translateY(120%);
            transition: 1s;


            label.purpose{
                padding-top: 10px;
            }

            button{
                min-width: 200px;
            }

            .form-group {
                text-align: left;
            }

            .relative{
                display: inline-block;
                left: 0;
            }
        }

        .table-view{
            display: table;
            margin: -10px auto 20px;
            width: 100%;
        }

        .table-cell{
            display: table-cell;
            text-align: left;
        }

        textarea{
            margin-top: 10px;
            width: 100%;
            height: 120px;
            resize: none;
        }
    }
}

#footprint{
    pre{
        margin-top: 100px;
    }
}


